package com.panshi.api;

import com.panshi.vo.CarouselVO;
import com.panshi.vo.R;
import com.panshi.vo.StatusVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "hasbei-sys.com" ,path = "/api/sys/carousel",contextId = "CarouselApi")
public interface CarouselApi {

    @ApiOperation("轮播图列表查询,全部")
    @PostMapping("/list")
    R listCarousel(@RequestBody(required = false) StatusVO statusVO);

    @ApiOperation("轮播图编辑")
    @PutMapping("/edit")
    R editCarousel(@RequestBody CarouselVO carouselVO);

    @ApiOperation("轮播图添加")
    @PostMapping("/add")
    R addCarousel(@RequestBody CarouselVO carouselVO);

   /* @ApiOperation("轮播图列表查询,显示状态为 1 的图")
    @GetMapping("/listShow")
    R listCarouselShow();*/

}
